package Test;

import com.mapper.CClassMapper;
import com.pojo.CClass;
import com.utils.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;

public class CClassTest {
    @Test
    public  void selectClassByIdTest(){
        SqlSession session = MyBatisUtils.getSqlSession();
        CClassMapper mapper = session.getMapper(CClassMapper.class);
        CClass clas= mapper.selectCClassById(2);
        System.out.println(clas);
        session.close();
    }

}
